<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>TESTER</title>
</head>
<body>

<h1>添加咖啡购物车</h1>
<p></p>
<form name="form" method="post"  onsubmit="javascript:return go()">
签名：<input name="sign" id="sign" value="" />  <br>
商品信息coffees：
<textarea style="width:70%" rows="22" name="coffees">{	
	"coffees":[
		{
			"coffee_id":"1",
			"quantity":"2"
		},
		{
			"coffee_id":"2",
			"quantity":"1"
		}
	]
}</textarea><br/>

edit：<input name="edit" id="edit" value="" /> 操作是根据coffees参数的quantity值, 传1:当前操作是购物车修改商品总数量, 0:进行累加(数字)/累减(-数字)<br>
coffee_shop_id：<input name="coffee_shop_id" id="coffee_shop_id" value="" /><br>

<input type=submit value=submit>
</form>
<script>
function go(){
	document.form.action = "/api.php?app=coffee_cart&act=add_cart&version=&sign="+document.getElementById('sign').value;
	document.form.submit();
	return true;
}
</script>
</body>
</html>

